package com.xy.xylive.common;

public enum ErrorCode {
    UNKNOWN_ERROR(600, "未知错误"),
    PERMISSION_ERROR(401, "权限错误"),
    PARAMS_ERROR(400, "参数错误"),
    ERROR(HttpStatus.ERROR, "错误"),
    SUCCESS(HttpStatus.SUCCESS, "成功");

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
